package com.gzsxy.esjy.redis.extend;

import java.util.Map;

public interface ICacheHashOneDay {


    /**
     * 保存一天
     */
    public final static int TIME = 60 * 24 * 60;


    /**
     * 放置属性
     * @param key
     * @param keyHash
     * @param value
     */
    public void put(String key, String keyHash, Object value);

    /**
     * 放置属性
     * @param key
     * @param keyHash
     * @param value
     */
    public void put(String key, String keyHash, Object value, int day);

    /**
     * 获取值
     * @param key
     * @param keyHash
     * @return
     */
    public Object get(String key, String keyHash);

    /**
     * 获取值
     * @param key
     * @param keyHash
     * @return
     */
    public <T> T get(String key, String keyHash, Class<T> clazz);

    /**
     * 移除值
     * @param key
     * @param keyHash
     * @return
     */
    public void remove(String key, String keyHash);

    public Map<String, Object> getAll(String key);
}
